﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="selectAttachment.aspx.cs"
    Inherits="Joyintech.Admin.inpiao365.core.selectAttachment" %>

<%@ Register Src="~/checkRight.ascx" TagName="checkRight" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择图片</title>
    <base target="_self" />
    <script language="javascript" type="text/javascript">
        function returnImage(imagename) {
            var arr = new Array();
            arr[0] = imagename;
            //alert(imagename);
            window.parent.returnValue = arr;
            window.parent.close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="position">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="fontL">
                    <asp:ImageButton ID="btnBack" ImageUrl="../theme/back.gif" runat="server" OnClick="btnBack_Click" />
                </td>
                <td class="fontL">
                    <input type="image" name="ctl04" src="/theme/seperator.gif" style="border-width: 0px;" />
                </td>
                <td class="fontL">
                    <asp:ImageButton ID="btnUp" ImageUrl="../theme/up.gif" runat="server" OnClick="btnUp_Click" />
                </td>
                <td class="fontL">
                    <input type="image" name="ctl04" src="/theme/seperator.gif" style="border-width: 0px;" />
                </td>
                <td class="fontL">
                    <asp:ImageButton ID="btnRefresh" ImageUrl="/theme/reload.gif" runat="server" />
                </td>
                <td class="fontL">
                    <input type="image" name="ctl04" src="/theme/seperator.gif" style="border-width: 0px;" />
                </td>
                <td class="fontL">
                    <asp:HyperLink ID="linkAddFile" runat="server"><input type="image" name="ctl05" src="/theme/add.gif" style="border-width:0px;" />上传图片</asp:HyperLink>
                </td>
                <td class="fontR" width="40%">
                    当前目录：<asp:HyperLink ID="linkCurrent" runat="server"></asp:HyperLink>
                </td>
            </tr>
        </table>
    </div>
    <div class="lister">
        <asp:DataList ID="rptFileList" RepeatColumns="4" runat="server" Width="100%" RepeatDirection="Horizontal">
            <ItemTemplate>
                <table cellspacing="0" cellpadding="5" border="0" align="center">
                    <tr>
                        <td align="center">
                            <%# Eval("FormatName") %>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: center; height: 30px;">
                            <%# Eval("Name").ToString().Length > 10 ? Eval("Name").ToString().Substring(0, 10) : Eval("Name").ToString()%>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
    </div>
    <uc1:checkRight ID="checkRight1" runat="server" />
    </form>
</body>
</html>
